#!/bin/bash

yesterday=`date -d 'last day' +%Y-%m-%d`

/usr/bin/mail -s "${yesterday}日带宽使用情况" 824556110q1q.com < /var/www/traffic/test/send.txt 
if [ $? -eq 0 ]
then
	/usr/bin/mail -s "${yesterday}日带宽使用情况" 18001131583@163.com < /var/www/traffic/test/send.txt 
fi
